#ifndef __WEB_PAGE_SEARCHER_H__
#define __WEB_PAGE_SEARCHER_H__

#include <memory>
#include <string>
#include <vector>
#include "WebPage.h"
#include "WebPageQuery.h"
using std::string;

class WebPageSearcher{
public: 
    WebPageSearcher(){}
    ~WebPageSearcher(){}
    void doQuery(string recvMsg){
        _queryWeb = _query.doQuery(recvMsg);
    }
    
    void setQueryWebVec(vector<WebPage> web){
        _queryWeb = web;
    }

    vector<WebPage>* getQueryWebPtr(){
        return &_queryWeb;
    }

    vector<WebPage> getQueryWebVec(){
        return _queryWeb;
    }

private:
    vector<WebPage> _queryWeb;
    WebPageQuery _query;
};

#endif // !__WEB_PAGE_SEARCHER_H__

